﻿using Antlr.Runtime;
using Hubberly;
using Logger4Net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Utilities;

public partial class WorldInfoFileParser
{
   /////////////////////////////////////////////////////////////////////////
   //
   protected override object RecoverFromMismatchedToken(IIntStream input, int token, BitSet follow)
   {
      throw new Exception("mismatched token");
   }

   /////////////////////////////////////////////////////////////////////////
   // Suppress the error recovery, the file is not what we expect
   public override object RecoverFromMismatchedSet(IIntStream input, RecognitionException ex, BitSet follow)
   {
      throw ex;
   }

   /////////////////////////////////////////////////////////////////////////
   //
   private void dumpParse(string fmt, params object[] args)
   {
      // Lose the debug output down a black hole
      //logger_.debugFormat(fmt, args);
   }

   /////////////////////////////////////////////////////////////////////////
   //
   public Entities.World world;
   public WorldInfoData info;
   private static Logger logger_ = new Logger(typeof(WorldInfoFileParser));
}
